// 自动生成模板OmsOrderOperateHistory
package biz

import (
	"time"

	"github.com/go-kratos/kratos/v2/log"
)

// omsOrderOperateHistory表 结构体  OmsOrderOperateHistory
type OmsOrderOperateHistory struct {
	Id          *int       `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                                        //id
	OrderId     *int       `json:"orderId" form:"orderId" gorm:"comment:订单id;column:order_id;size:19;"`                                                 //订单id
	OperateMan  *string    `json:"operateMan" form:"operateMan" gorm:"comment:操作人[用户；系统；后台管理员];column:operate_man;size:100;"`                           //操作人[用户；系统；后台管理员]
	CreateTime  *time.Time `json:"createTime" form:"createTime" gorm:"comment:操作时间;column:create_time;"`                                                //操作时间
	OrderStatus *bool      `json:"orderStatus" form:"orderStatus" gorm:"comment:订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】;column:order_status;"` //订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】
	Note        *string    `json:"note" form:"note" gorm:"comment:备注;column:note;size:500;"`                                                            //备注
}

// TableName omsOrderOperateHistory表 OmsOrderOperateHistory自定义表名 oms_order_operate_history
func (OmsOrderOperateHistory) TableName() string {
	return "oms_order_operate_history"
}

type OmsOrderOperateHistoryRepo interface {
}

type OmsOrderOperateHistoryUsecase struct {
	repo OmsOrderOperateHistoryRepo
	log  *log.Helper
}

func NewOmsOrderOperateHistoryUsecase(repo GreeterRepo, logger log.Logger) *OmsOrderOperateHistoryUsecase {
	return &OmsOrderOperateHistoryUsecase{repo: repo, log: log.NewHelper(logger)}
}
